﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DUONGTUANVU.OOP.Example.Bai2
{
    class People
    {   //1. khai báo datafields
        int fiD;
        string ffullName;
        int fsoChan;
        int fsoTay;
        string fcolorl;
        string flang;
        string fsex;

        //2. khai báo hàm khởi dựng
        public People(int iD, string fullName, int soChan, int soTay, string colorl, string lang, string sex)
        {
            //<Biến toàn cục> = <Tham số>;
            fiD = iD;
            ffullName = fullName;
            fsoChan = soChan;
            fsoTay = soTay;
            fcolorl = colorl;
            flang = lang;
            fsex = sex;
        }

        // get,set

        public int iD
        {
            get { return fiD; }
            set { fiD = value;}
        }
        public string fullName
        {
            get { return ffullName; }
            set { ffullName = value; }
        }
        public int soChan
        {
            get { return fsoChan; }
            set { fsoChan = value; }
        }
        public int soTay
        {
            get { return fsoTay; }
            set { fsoTay = value; }
        }
        public string colorl
        {
            get { return fcolorl; }
            set { fcolorl = value; }
        }
        public string lang
        {
            get { return flang; }
            set { flang = value; }
        }
        public string sex
        {
            get { return fsex; }
            set { fsex = value; }
        }
    }
}
